package ae.pcfc.cldos.online.common.clddb.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.envers.AuditTable;
import org.hibernate.envers.Audited;


/**
 * The persistent class for the T_CLDOS_FINANCE_TRANSACTION database table.
 * 
 */
@Entity
@Table(name="T_CLDOS_FINANCE_TRANSACTION")
@Audited
@AuditTable(value="T_CLDOS_FIN_TRANSACT_AUD")
@SequenceGenerator(name = "SQ_CLDOS_FIN_ID", sequenceName = "SQ_CLDOS_FIN_ID", initialValue = 1, allocationSize = 1)
public class FinanceTransaction implements Serializable {
	

	/**
	 * 
	 */
	private static final long serialVersionUID = 6109298432454646221L;

	@Id
	@GeneratedValue( strategy = GenerationType.SEQUENCE, generator="SQ_CLDOS_FIN_ID")
	@Column(name="FT_ID")
	private long ftId;

	@Column(name="FT_BANK_GRNTE")
	private String ftBankGrnte;

	@Column(name="FT_BANK_GRNTE_BAL")
	private String ftBankGrnteBal;

	@Column(name="FT_PREPD_ACT_ACNT")
	private String ftPrepdActAcnt;

	@Column(name="FT_PREPD_REF_ACNT")
	private String ftPrepdRefAcnt;

	@Column(name="FT_TOT_CHARGE")
	private String ftTotCharge;

	@Column(name="FT_VISA_CHARGE")
	private String ftVisaCharge;

	//bi-directional many-to-one association to AppMetaData
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="APPLICATION_ID")
	private AppMetaData AppMetaData;

    public FinanceTransaction() {
    }

	public long getFtId() {
		return this.ftId;
	}

	public void setFtId(long ftId) {
		this.ftId = ftId;
	}

	public String getFtBankGrnte() {
		return this.ftBankGrnte;
	}

	public void setFtBankGrnte(String ftBankGrnte) {
		this.ftBankGrnte = ftBankGrnte;
	}

	public String getFtBankGrnteBal() {
		return this.ftBankGrnteBal;
	}

	public void setFtBankGrnteBal(String ftBankGrnteBal) {
		this.ftBankGrnteBal = ftBankGrnteBal;
	}

	public String getFtPrepdActAcnt() {
		return this.ftPrepdActAcnt;
	}

	public void setFtPrepdActAcnt(String ftPrepdActAcnt) {
		this.ftPrepdActAcnt = ftPrepdActAcnt;
	}

	public String getFtPrepdRefAcnt() {
		return this.ftPrepdRefAcnt;
	}

	public void setFtPrepdRefAcnt(String ftPrepdRefAcnt) {
		this.ftPrepdRefAcnt = ftPrepdRefAcnt;
	}

	public String getFtTotCharge() {
		return this.ftTotCharge;
	}

	public void setFtTotCharge(String ftTotCharge) {
		this.ftTotCharge = ftTotCharge;
	}

	public String getFtVisaCharge() {
		return this.ftVisaCharge;
	}

	public void setFtVisaCharge(String ftVisaCharge) {
		this.ftVisaCharge = ftVisaCharge;
	}

	public AppMetaData getAppMetaData() {
		return this.AppMetaData;
	}

	public void setAppMetaData(AppMetaData AppMetaData) {
		this.AppMetaData = AppMetaData;
	}
	
}